package com.lhh.springcloud.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
@Configuration
public class RibbonConfig {
//    @Bean
//    public IRule ribbonRule() {
//        //修改默认负载均衡算法(轮询算法)为随机算法
//        return new RandomRule();
//    }
}
